import axios from "@/utils/axiosUtils";
const user = {
    login(data) {
        return axios.post('/admin/login', data)
    },
    findAllUser(data) {
        return axios.post('/admin/get', data)
    },
    updateUser(data) {
        return axios.post('/admin/set', data)
    },
    findSystemUser(data) {
        return axios.post('/systemUser/get', data)
    },
    addUser(data) {
        return axios.post('/admin/add', data)
    },
    delUser(data) {
        return axios.post('/admin/delete', data)
    },
    findUser(data) {
        return axios.post('/usersAD/getSearch', data)
    },
    findUserLeave(data) {
        return axios.post('/userLevelAD/find', data)
    },
    findUserGroup(data) {
        return axios.post('/userGroupAD/find', data)
    },
    findUserTag(data) {
        return axios.post('/tagAD/find', data)
    },
    addUserAdmin(data) {
        return axios.post('/usersAD/addUser', data)
    },
    getUserInfo(){
        return axios.get("/admin/getUserInfo")
    },
}
export default user